package com.ogawa.projectcommon.service

import com.ogawa.base.base.BaseResponseBean
import com.ogawa.projectcommon.bean.CollectResponse
import com.ogawa.projectcommon.bean.CollectBean
import com.ogawa.projectcommon.constants.Constant
import retrofit2.http.*

interface CollectApiService {
    @POST("/api/collectionService/v1/collections")
    suspend fun collect(@Body collectBean: CollectBean): BaseResponseBean<String>

    @GET("/api/collectionService/v1/collections")
    suspend fun getCollects(@Query("typeCode") typeCode: String):BaseResponseBean<CollectResponse>

    @DELETE("/api/collectionService/v1/collections")
    suspend fun unCollect(
        @Query("type") type: Int,
        @Query("program") program: String,
        @Query("typeCode") typeCode: String
    )
}